#include "LocalPlayer.h"
#include <iostream>

LocalPlayer::LocalPlayer(void)
{
}

LocalPlayer::~LocalPlayer(void)
{
}

void LocalPlayer::Play(int player, Board board, Move &move) 
{
	int x,y;
	while(true) {
		std::cout << "X position (0-18): ";
		std::cin >> x;
		std::cout << "Y position (0-18): ";
		std::cin >> y;
		if( x >= 0 && y >= 0 && x < 19 && y < 19 && board[x][y] == 0 ) {
			move[0] = x;
			move[1] = y;
			return;
		}
		std::cout << "badddd inputs!!!!\n";
	}
}